package com.ruoyi.bole.integral.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分申请对象 bole_integral_application
 * 
 * @author ruoyi
 * @date 2025-03-23
 */
public class BoleIntegralApplication extends BaseEntity
{

    private static final long serialVersionUID = 1L;


    private String integralSouce;
    /** 主键ID */
    private Long id;

    /** 申请人ID（外键关联sys_user.user_id） */
    private Long userId;

    /** 积分类型（project:项目 training:培训 activity:活动） */
    @Excel(name = "积分类型", readConverterExp = "p=roject:项目,t=raining:培训,a=ctivity:活动")
    private String type;

    /** 积分分值 */
    @Excel(name = "积分分值")
    private Long score;

    /** 申请日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyDate;

    /** 申请描述 */
    @Excel(name = "申请描述")
    private String description;

    /** 佐证材料（JSON数组存储文件路径） */
    @Excel(name = "佐证材料", readConverterExp = "J=SON数组存储文件路径")
    private String files;

    /** 审核状态（0-待审核 1-已通过 2-已驳回） */
    @Excel(name = "审核状态", readConverterExp = "0=-待审核,1=-已通过,2=-已驳回")
    private String status;

    /** 驳回原因 */
    @Excel(name = "驳回原因")
    private String rejectReason;

    /** 审核人ID（外键关联sys_user.user_id） */
    @Excel(name = "审核人ID", readConverterExp = "外=键关联sys_user.user_id")
    private Long auditorId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    //是否是审核来的积分
    private Integer isApplication;
    private String name;
    //关联赛季
    private Integer seasonId;

    public Integer getSeasonId() {
        return seasonId;
    }

    public void setSeasonId(Integer seasonId) {
        this.seasonId = seasonId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIsApplication() {
        return isApplication;
    }

    public void setIsApplication(Integer isApplication) {
        this.isApplication = isApplication;
    }

    //是积分申请按钮

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public String getIntegralSouce() {
        return integralSouce;
    }

    public void setIntegralSouce(String integralSouce) {
        this.integralSouce = integralSouce;
    }
    public Long getScore() 
    {
        return score;
    }
    public void setApplyDate(Date applyDate) 
    {
        this.applyDate = applyDate;
    }

    public Date getApplyDate() 
    {
        return applyDate;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setFiles(String files) 
    {
        this.files = files;
    }

    public String getFiles() 
    {
        return files;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setAuditorId(Long auditorId) 
    {
        this.auditorId = auditorId;
    }

    public Long getAuditorId() 
    {
        return auditorId;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("score", getScore())
            .append("applyDate", getApplyDate())
            .append("description", getDescription())
            .append("files", getFiles())
            .append("status", getStatus())
            .append("rejectReason", getRejectReason())
                .append("bame", getName())
                .append("seasonId", getSeasonId())
            .append("auditorId", getAuditorId())
            .append("auditTime", getAuditTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
                .append("integralSouce", getUpdateTime())
            .toString();
    }
}
